export const APP_COLUMNS = [
  // { colKey: 'row-select', type: 'multiple', width: 64, fixed: 'left' },
  {
    title: '应用ID',
    align: 'left',
    width: 120,
    colKey: 'appId',
    fixed: 'left',
  },

  {
    title: '商户号',
    width: 200,
    ellipsis: true,
    colKey: 'mchId',
  },
  {
    title: '支付渠道',
    width: 200,
    ellipsis: true,
    colKey: 'paymentChannelTxt',
  },
  {
    title: '支付场景',
    width: 200,
    ellipsis: true,
    colKey: 'paymentSceneTxt',
  },
  {
    title: '描述',
    width: 100,
    ellipsis: true,
    colKey: 'description',
  },

  // {
  //   title: '应用类型',
  //   width: 200,
  //   ellipsis: true,
  //   colKey: 'appType',
  // },


  {
    align: 'left',
    fixed: 'right',
    width: 200,
    colKey: 'op',
    title: '操作',
  },
];

export const FORM_RULES = {
  mchId: [{ required: true, message: '请输入商户号', type: 'error' }],
  paymentChannel: [{ required: true, message: '请选择支付渠道', type: 'error' }],
  appId: [{ required: true, message: '请选择应用id', type: 'error' }],

};

export const INITIAL_DATA = {
  appId: '',
  appSecret:'',
  mchId: '',
  paymentChannel: 1,
  mchType: 0,
  paymentScene: 1,
  description: '',

  appType:0,
  token:''
};

export const PAYMENT_CHANNEL_OPTIONS = [
  {
    label: '微信支付',
    value: 1,
  },
  {
    label: '支付宝',
    value: 2,
  },
];
export const MCH_TYPE_OPTIONS = [
  {
    label: '普通商户',
    value: 0,
  },
  {
    label: '服务商',
    value: 1,
  },
  {
    label: '银行服务商',
    value: 2,
  },
];

export const PAYMENT_SCENE_OPTIONS = [
  {
    label: 'JSAPI',
    value: 1,
  },
  {
    label: 'APP',
    value: 2,
  },
  {
    label: '原生支付',
    value: 3,
  },
  {
    label: '电脑网页支付',
    value: 4,
  },
  {
    label: '手机网页支付',
    value: 5,
  },
];
